package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_visitor" )
public class Visitor  implements Serializable {

	private static final long serialVersionUID =  8601448857903703983L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 用户名
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 登录次数
	 */
   	@Column(name = "login_count" )
	private Long loginCount;

	/**
	 * 最后登录时间
	 */
   	@Column(name = "last_login_time" )
	private Date lastLoginTime;

	/**
	 * 最后登录IP
	 */
   	@Column(name = "last_login_ip" )
	private String lastLoginIp;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

}
